#pragma once
#include <sfml/System.hpp>

class TilePlotter
{
public:
	TilePlotter(void) {SetMapSize(10,10);}
	~TilePlotter(void) {}

	static  void SetTileSize(int width, int height) { tileHeight = height; tileWidth = width;}
	static  sf::Vector2f GetTileSize()  { return sf::Vector2f((float)tileWidth,(float)tileHeight);}
	static  void SetMapSize(int w, int h) { mapWidth = w*tileWidth; mapHeight = h*tileHeight;}
	static  sf::Vector2f GetMapSize()  { return sf::Vector2f((float)mapWidth, (float)mapHeight);}
	static  void SetMapSize(sf::Vector2i mapsize) { mapWidth = mapsize.x*tileWidth; mapHeight = mapsize.y*tileHeight; }

	static sf::Vector2i PlotTileInt(int row, int col);
	static sf::Vector2f PlotTile(int row, int col);
	static sf::Vector2f PlotTile(const sf::Vector2i& pos);
	static sf::Vector2i PlotTileInt(const sf::Vector2i& pos);
private:
	static int tileWidth, tileHeight;
	static int mapWidth, mapHeight;
};
